public class a03demo3 {
    public static void main(String[] args) {
        System.out.println(getSum(1));
    }

    public static int getSum(int n) {
        if (n == 10) {
            return 1;
        }
        return (getSum(n + 1) + 1) * 2;
    }
}
